{#
SPDX-FileCopyrightText:  2020-2021 zPlus <zplus@peers.community>
SPDX-License-Identifier: GPL-2.0-only
#}

{% if feed['type'] == 'create_project' %}

    <a href="{{ feed['actor']['id'] }}">@{{ feed['actor']['name'] }}</a>
    has created a new project
    <a href="{{ feed['project']['id'] }}">@{{ feed['project']['name'] }}</a>.

{% elif feed['type'] == 'create_branch' %}

    <a href="{{ feed['actor']['id'] }}">@{{ feed['actor']['name'] }}</a>
    has created a new branch
    <a href="{{ feed['branch']['id'] }}">@{{ feed['branch']['name'] }}</a>
    for repository
    <a href="{{ feed['repository']['id'] }}">@{{ feed['repository']['name'] }}</a>.

{% elif feed['type'] == 'create_git_tag' %}

    New tag
    <a href="{{ feed['ref']['id'] }}">@{{ feed['ref']['name'] }}</a>
    created for repository
    <a href="{{ feed['repository']['id'] }}">@{{ feed['repository']['name'] }}</a>.

{% elif feed['type'] == 'follow' %}

    <a href="{{ feed['follower']['id'] }}">@{{ feed['follower']['name'] }}</a>
    has sent a Follow request to
    <a href="{{ feed['followee']['id'] }}">@{{ feed['followee']['name'] }}</a>.

{% elif feed['type'] == 'accept_follow' %}

    <a href="{{ feed['followee']['id'] }}">@{{ feed['followee']['name'] }}</a>
    has accepted Follow request from
    <a href="{{ feed['follower']['id'] }}">@{{ feed['follower']['name'] }}</a>.

{% elif feed['type'] == 'accept_ticket' %}

    The Ticket
    <a class="font-italic" href="{{ feed['ticket']['id'] }}">"{{ feed['ticket']['summary'] }}"</a>
    was accepted by
    <a href="{{ feed['tickettracker']['id'] }}">@{{ feed['tickettracker']['name'] }}</a>.

{% elif feed['type'] == 'delete_ticket' %}

    The Ticket
    <a class="font-italic" href="{{ feed['ticket']['id'] }}">"{{ feed['ticket']['id'] }}"</a>
    was deleted by
    <a href="{{ feed['actor']['id'] }}">@{{ feed['actor']['name'] }}</a>.

{% elif feed['type'] == 'accept_mergerequest' %}

    The MergeRequest
    <a class="font-italic" href="{{ feed['mergerequest']['id'] }}">"{{ feed['mergerequest']['summary'] }}"</a>
    was accepted.

{% endif %}
